package com.zhentao.tot.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zhentao.tot.mapper.ApCollectionMapper;
import com.zhentao.tot.domain.ApCollection;
import com.zhentao.tot.service.IApCollectionService;

/**
 * APP收藏信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-18
 */
@Service
public class ApCollectionServiceImpl implements IApCollectionService 
{
    @Autowired
    private ApCollectionMapper apCollectionMapper;

    /**
     * 查询APP收藏信息
     * 
     * @param id APP收藏信息主键
     * @return APP收藏信息
     */
    @Override
    public ApCollection selectApCollectionById(Integer id)
    {
        return apCollectionMapper.selectApCollectionById(id);
    }

    /**
     * 查询APP收藏信息列表
     * 
     * @param apCollection APP收藏信息
     * @return APP收藏信息
     */
    @Override
    public List<ApCollection> selectApCollectionList(ApCollection apCollection)
    {
        return apCollectionMapper.selectApCollectionList(apCollection);
    }

    /**
     * 新增APP收藏信息
     * 
     * @param apCollection APP收藏信息
     * @return 结果
     */
    @Override
    public int insertApCollection(ApCollection apCollection)
    {
        return apCollectionMapper.insertApCollection(apCollection);
    }

    /**
     * 修改APP收藏信息
     * 
     * @param apCollection APP收藏信息
     * @return 结果
     */
    @Override
    public int updateApCollection(ApCollection apCollection)
    {
        return apCollectionMapper.updateApCollection(apCollection);
    }

    /**
     * 批量删除APP收藏信息
     * 
     * @param ids 需要删除的APP收藏信息主键
     * @return 结果
     */
    @Override
    public int deleteApCollectionByIds(Integer[] ids)
    {
        return apCollectionMapper.deleteApCollectionByIds(ids);
    }

    /**
     * 删除APP收藏信息信息
     * 
     * @param id APP收藏信息主键
     * @return 结果
     */
    @Override
    public int deleteApCollectionById(Integer id)
    {
        return apCollectionMapper.deleteApCollectionById(id);
    }
}
